
public class Oaie2 implements Cloneable {
	private int varsta;
	private boolean pufoasa;
	private String nume;
	private enum culoare{
		neagra, alba
	}
	private enum rasa{
		karakul, columbia, panama, romney, montadale
	}
	private Miel[] miei;
	
	public Oaie2(String nume, int varsta, boolean pufoasa){
		this.nume=nume;
		this.varsta=varsta;
		this.pufoasa=pufoasa;
	}
	public Object clone(){
		Oaie obj = new Oaie();
		obj.setnume(this.nume);
		obj.setvarsta(this.varsta);
		obj.setpufoasa(this.pufoasa);
		return obj;
	}
	public String getnume(){
		return nume;
	}
	public void getvarsta(){
		System.out.println(varsta);
	}
	public void getpufoasa(){
		System.out.println(pufoasa);
	}
	public void setnume(String nume){
		this.nume=nume;
	}
	public void setvarsta(int varsta){
		this.varsta=varsta;
	}
	public void setpufoasa(boolean pufoasa){
		this.pufoasa=pufoasa;
	}
	
}